# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xorg-xlsatoms
pkgver=1.1.2
pkgrel=2
pkgdesc="List interned atoms defined on server"
arch=('x86_64')
url="https://xorg.freedesktop.org/"
license=('custom')
depends=('libxcb')
makedepends=('xorg-util-macros')
groups=('xorg-apps' 'xorg')
source=(https://xorg.freedesktop.org/archive/individual/app/xlsatoms-${pkgver}.tar.bz2{,.sig})
sha512sums=('f29001de22818792212312f1b9daee1bf7afa2ef2ae945cd8c14bdc1a7bb40064d3878c5efea60458ac0bf515ab1ece16fa90cbd2b0a879a5f07f3aa3e6a0baa'
            'SKIP')
validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # Alan Coopersmith <alan.coopersmith@oracle.com>

build() {
  cd xlsatoms-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
  cd xlsatoms-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
